export const buttonText = `
import React, { useRef, useState } from 'react';
import {  IvButton } from '@/components'
import { useNavigate } from 'react-router-dom'
import {Texts} from './text'



const buttonDom: React.FC = () => {
 
 
  function showModal(callback) {
   
    callback()
  }
  function showModal2(callback) {
    ModalRef.current.showModal()
    setTimeout(() => {
      callback()
    }, 2000)
  }

  return (
    <div>
    
      <IvButton type="primary" onClick={showModal}>
        点我没有login
      </IvButton>
      <IvButton type="primary" onClick={showModal2}>
        点我有login
      </IvButton>


    </div>
  )
}

export default buttonDom;
`